package com.yonyou.brigade.order_center.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2019-01-24
 */
@TableName("bri_car_order")
public class BriCarOrder extends Model<BriCarOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 订单来源
     */
    @TableField("from_type")
    private String fromType;
    /**
     * 0 实时 1预约
     */
    private String type;
    /**
     * 1 因公 2因私
     */
    @TableField("public_or_private")
    private String publicOrPrivate;
    /**
     * 国内国际类型 D国内 I国际
     */
    @TableField("is_domc")
    private String isDomc;
    /**
     * 溢价详情
     */
    @TableField("preium_detail")
    private String preiumDetail;
    /**
     * 溢价原因
     */
    @TableField("preium_reason")
    private String preiumReason;
    /**
     * 订单状态
     */
    @TableField("order_status")
    private String orderStatus;
    /**
     * 车型,比如奥迪A6L等
     */
    @TableField("vehicle_model")
    private String vehicleModel;
    /**
     * 出发地
     */
    @TableField("start_name")
    private String startName;
    /**
     * 目的地
     */
    @TableField("end_name")
    private String endName;
    /**
     * 出发时间
     */
    @TableField("departure_time")
    private Date departureTime;
    /**
     * 到达时间
     */
    @TableField("arrive_time")
    private Date arriveTime;
    /**
     * 叫车人手机号
     */
    @TableField("call_phone")
    private String callPhone;
    /**
     * 乘客名称
     */
    @TableField("psg_name")
    private String psgName;
    /**
     * 乘客手机号
     */
    @TableField("psg_phone")
    private String psgPhone;
    /**
     * 联系人姓名
     */
    @TableField("linker_name")
    private String linkerName;
    /**
     * 联系人手机号
     */
    @TableField("linker_phone")
    private String linkerPhone;
    /**
     * 司机手机号
     */
    @TableField("driver_phone")
    private String driverPhone;
    /**
     * 车牌号
     */
    @TableField("vehicle_card")
    private String vehicleCard;
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 支付类型 预付现付
     */
    @TableField("pay_type")
    private String payType;
    /**
     * 支付方式 支付宝、微信等具体支付方式
     */
    @TableField("payment_type")
    private String paymentType;
    /**
     * 城市名称
     */
    @TableField("city_name")
    private String cityName;
    /**
     * 来源 比如APP等
     */
    @TableField("source_type")
    private String sourceType;
    /**
     * 商家编码
     */
    @TableField("plat_code")
    private String platCode;
    /**
     * 用户在第三方得编号
     */
    @TableField("out_user_code")
    private String outUserCode;
    /**
     * 审批状态
     */
    @TableField("approve_status")
    private String approveStatus;
    /**
     * 成本中心
     */
    @TableField("cost_center_name")
    private String costCenterName;
    /**
     * 本单里程
     */
    private String distance;
    /**
     * 本单时长
     */
    private String duration;
    /**
     * 备注
     */
    @TableField("other_info")
    private String otherInfo;
    /**
     * 公司ID
     */
    @TableField("out_company_id")
    private String outCompanyId;
    /**
     * 第三方创建订单时间
     */
    @TableField("out_create_time")
    private Date outCreateTime;
    /**
     * 总费用
     */
    @TableField("total_price")
    private BigDecimal totalPrice;
    /**
     * 实付金额
     */
    @TableField("actual_price")
    private BigDecimal actualPrice;
    /**
     * 券抵扣金额
     */
    @TableField("coupon_pay")
    private BigDecimal couponPay;
    /**
     * 公司实付金额
     */
    @TableField("company_real_pay")
    private BigDecimal companyRealPay;
    /**
     * 个人实付金额
     */
    @TableField("person_real_pay")
    private BigDecimal personRealPay;
    /**
     * 本单欠费金额
     */
    @TableField("arrears_pay")
    private BigDecimal arrearsPay;
    /**
     * 公司实际退款金额
     */
    @TableField("company_real_refund")
    private BigDecimal companyRealRefund;
    /**
     * 个人实际退款金额
     */
    @TableField("person_real_refund")
    private BigDecimal personRealRefund;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 我方审批单单号
     */
    @TableField("in_approve_id")
    private String inApproveId;
    /**
     * 员工工号
     */
    @TableField("employee_number")
    private String employeeNumber;
    /**
     * 用车规则
     */
    @TableField("use_car_config_id")
    private String useCarConfigId;
    /**
     * 开票状态
     */
    @TableField("is_invoice")
    private String isInvoice;
    /**
     * 用车类型
     */
    @TableField("use_car_srv")
    private String useCarSrv;
    /**
     * 用户userId
     */
    @TableField("user_id")
    private String userId;
    /**
     * 租户ID
     */
    private String tenant;
    /**
     * 组织PK
     */
    @TableField("org_pk")
    private String orgPk;
    /**
     * 部门注：为空或"/"则默认到企业总部下面,多部门之间用"/"分割，例如部门是差旅研发组，则这样表示（/研发中心/差旅研发组）
     */
    private String department;
    /**
     * 部门PK
     */
    @TableField("dept_pk")
    private String deptPk;
    /**
     * 本条记录创建时间
     */
    @TableField("in_create_time")
    private Date inCreateTime;
    /**
     * 报销状态 0未报销 1 已报销
     */
    @TableField("bx_state")
    private Integer bxState;
    /**
     * 是否已经生成记事 0 没有  1 已经生成
     */
    @TableField("is_note")
    private Integer isNote;
    /**
     * 商旅标记
     */
    private String category;
    /**
     * 用哪个账号拉取的内容
     */
    @TableField("channel_id")
    private Integer channelId;
    /**
     * 到达城市
     */
    @TableField("arrive_city")
    private String arriveCity;
    /**
     * 接送航班号
     * */
    @TableField("air_plane_no")
    private String airPlaneNo;
    private Date ts;
    /**
     * 费用承担单位
     */
    @TableField("assume_org")
    private String assumeOrg;
    /**
     * 费用承担部门
     */
    @TableField("assume_dept")
    private String assumeDept;
    /**
     * 费用项目
     */
    @TableField("cost_project")
    private String costProject;
    /**
     * 实际申请人
     */
    @TableField("apply_user")
    private String applyUser;
    /**
     * 实际出行人
     */
    @TableField("companion")
    private String companion;
    /**
     * 关联外部单据单号
     */
    @TableField("relate_other_id")
    private String relateOtherId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getFromType() {
        return fromType;
    }

    public void setFromType(String fromType) {
        this.fromType = fromType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPublicOrPrivate() {
        return publicOrPrivate;
    }

    public void setPublicOrPrivate(String publicOrPrivate) {
        this.publicOrPrivate = publicOrPrivate;
    }

    public String getIsDomc() {
        return isDomc;
    }

    public void setIsDomc(String isDomc) {
        this.isDomc = isDomc;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getVehicleModel() {
        return vehicleModel;
    }

    public void setVehicleModel(String vehicleModel) {
        this.vehicleModel = vehicleModel;
    }

    public String getStartName() {
        return startName;
    }

    public void setStartName(String startName) {
        this.startName = startName;
    }

    public String getEndName() {
        return endName;
    }

    public void setEndName(String endName) {
        this.endName = endName;
    }

    public Date getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(Date departureTime) {
        this.departureTime = departureTime;
    }

    public Date getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(Date arriveTime) {
        this.arriveTime = arriveTime;
    }

    public String getCallPhone() {
        return callPhone;
    }

    public void setCallPhone(String callPhone) {
        this.callPhone = callPhone;
    }

    public String getPsgName() {
        return psgName;
    }

    public void setPsgName(String psgName) {
        this.psgName = psgName;
    }

    public String getPsgPhone() {
        return psgPhone;
    }

    public void setPsgPhone(String psgPhone) {
        this.psgPhone = psgPhone;
    }

    public String getLinkerName() {
        return linkerName;
    }

    public void setLinkerName(String linkerName) {
        this.linkerName = linkerName;
    }

    public String getLinkerPhone() {
        return linkerPhone;
    }

    public void setLinkerPhone(String linkerPhone) {
        this.linkerPhone = linkerPhone;
    }

    public String getDriverPhone() {
        return driverPhone;
    }

    public void setDriverPhone(String driverPhone) {
        this.driverPhone = driverPhone;
    }

    public String getVehicleCard() {
        return vehicleCard;
    }

    public void setVehicleCard(String vehicleCard) {
        this.vehicleCard = vehicleCard;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getPlatCode() {
        return platCode;
    }

    public void setPlatCode(String platCode) {
        this.platCode = platCode;
    }

    public String getOutUserCode() {
        return outUserCode;
    }

    public void setOutUserCode(String outUserCode) {
        this.outUserCode = outUserCode;
    }

    public String getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(String approveStatus) {
        this.approveStatus = approveStatus;
    }

    public String getCostCenterName() {
        return costCenterName;
    }

    public void setCostCenterName(String costCenterName) {
        this.costCenterName = costCenterName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String otherInfo) {
        this.otherInfo = otherInfo;
    }

    public String getOutCompanyId() {
        return outCompanyId;
    }

    public void setOutCompanyId(String outCompanyId) {
        this.outCompanyId = outCompanyId;
    }

    public Date getOutCreateTime() {
        return outCreateTime;
    }

    public void setOutCreateTime(Date outCreateTime) {
        this.outCreateTime = outCreateTime;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    public BigDecimal getCouponPay() {
        return couponPay;
    }

    public void setCouponPay(BigDecimal couponPay) {
        this.couponPay = couponPay;
    }

    public BigDecimal getCompanyRealPay() {
        return companyRealPay;
    }

    public void setCompanyRealPay(BigDecimal companyRealPay) {
        this.companyRealPay = companyRealPay;
    }

    public BigDecimal getPersonRealPay() {
        return personRealPay;
    }

    public void setPersonRealPay(BigDecimal personRealPay) {
        this.personRealPay = personRealPay;
    }

    public BigDecimal getArrearsPay() {
        return arrearsPay;
    }

    public void setArrearsPay(BigDecimal arrearsPay) {
        this.arrearsPay = arrearsPay;
    }

    public BigDecimal getCompanyRealRefund() {
        return companyRealRefund;
    }

    public void setCompanyRealRefund(BigDecimal companyRealRefund) {
        this.companyRealRefund = companyRealRefund;
    }

    public BigDecimal getPersonRealRefund() {
        return personRealRefund;
    }

    public void setPersonRealRefund(BigDecimal personRealRefund) {
        this.personRealRefund = personRealRefund;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getInApproveId() {
        return inApproveId;
    }

    public void setInApproveId(String inApproveId) {
        this.inApproveId = inApproveId;
    }

    public String getEmployeeNumber() {
        return employeeNumber;
    }

    public void setEmployeeNumber(String employeeNumber) {
        this.employeeNumber = employeeNumber;
    }

    public String getUseCarConfigId() {
        return useCarConfigId;
    }

    public void setUseCarConfigId(String useCarConfigId) {
        this.useCarConfigId = useCarConfigId;
    }

    public String getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(String isInvoice) {
        this.isInvoice = isInvoice;
    }

    public String getUseCarSrv() {
        return useCarSrv;
    }

    public void setUseCarSrv(String useCarSrv) {
        this.useCarSrv = useCarSrv;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getOrgPk() {
        return orgPk;
    }

    public void setOrgPk(String orgPk) {
        this.orgPk = orgPk;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDeptPk() {
        return deptPk;
    }

    public void setDeptPk(String deptPk) {
        this.deptPk = deptPk;
    }

    public Date getInCreateTime() {
        return inCreateTime;
    }

    public void setInCreateTime(Date inCreateTime) {
        this.inCreateTime = inCreateTime;
    }

    public Integer getBxState() {
        return bxState;
    }

    public void setBxState(Integer bxState) {
        this.bxState = bxState;
    }

    public Integer getIsNote() {
        return isNote;
    }

    public void setIsNote(Integer isNote) {
        this.isNote = isNote;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getArriveCity() {
        return arriveCity;
    }

    public void setArriveCity(String arriveCity) {
        this.arriveCity = arriveCity;
    }

    public String getAirPlaneNo() {
        return airPlaneNo;
    }

    public void setAirPlaneNo(String airPlaneNo) {
        this.airPlaneNo = airPlaneNo;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public String getAssumeOrg() {
        return assumeOrg;
    }

    public void setAssumeOrg(String assumeOrg) {
        this.assumeOrg = assumeOrg;
    }

    public String getAssumeDept() {
        return assumeDept;
    }

    public void setAssumeDept(String assumeDept) {
        this.assumeDept = assumeDept;
    }

    public String getCostProject() {
        return costProject;
    }

    public void setCostProject(String costProject) {
        this.costProject = costProject;
    }

    public String getApplyUser() {
        return applyUser;
    }

    public void setApplyUser(String applyUser) {
        this.applyUser = applyUser;
    }

    public String getCompanion() {
        return companion;
    }

    public void setCompanion(String companion) {
        this.companion = companion;
    }

    public String getPreiumDetail() {
        return preiumDetail;
    }

    public void setPreiumDetail(String preiumDetail) {
        this.preiumDetail = preiumDetail;
    }

    public String getPreiumReason() {
        return preiumReason;
    }

    public void setPreiumReason(String preiumReason) {
        this.preiumReason = preiumReason;
    }

    public String getRelateOtherId() {
        return relateOtherId;
    }

    public void setRelateOtherId(String relateOtherId) {
        this.relateOtherId = relateOtherId;
    }

    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String FROM_TYPE = "from_type";

    public static final String TYPE = "type";

    public static final String PUBLIC_OR_PRIVATE = "public_or_private";

    public static final String IS_DOMC = "is_domc";

    public static final String ORDER_STATUS = "order_status";

    public static final String VEHICLE_MODEL = "vehicle_model";

    public static final String START_NAME = "start_name";

    public static final String END_NAME = "end_name";

    public static final String DEPARTURE_TIME = "departure_time";

    public static final String ARRIVE_TIME = "arrive_time";

    public static final String CALL_PHONE = "call_phone";

    public static final String PSG_NAME = "psg_name";

    public static final String PSG_PHONE = "psg_phone";

    public static final String LINKER_NAME = "linker_name";

    public static final String LINKER_PHONE = "linker_phone";

    public static final String DRIVER_PHONE = "driver_phone";

    public static final String VEHICLE_CARD = "vehicle_card";

    public static final String CREATE_BY = "create_by";

    public static final String PAY_TYPE = "pay_type";

    public static final String PAYMENT_TYPE = "payment_type";

    public static final String CITY_NAME = "city_name";

    public static final String SOURCE_TYPE = "source_type";

    public static final String PLAT_CODE = "plat_code";

    public static final String OUT_USER_CODE = "out_user_code";

    public static final String APPROVE_STATUS = "approve_status";

    public static final String COST_CENTER_NAME = "cost_center_name";

    public static final String DISTANCE = "distance";

    public static final String DURATION = "duration";

    public static final String OTHER_INFO = "other_info";

    public static final String OUT_COMPANY_ID = "out_company_id";

    public static final String OUT_CREATE_TIME = "out_create_time";

    public static final String TOTAL_PRICE = "total_price";

    public static final String ACTUAL_PRICE = "actual_price";

    public static final String COUPON_PAY = "coupon_pay";

    public static final String COMPANY_REAL_PAY = "company_real_pay";

    public static final String PERSON_REAL_PAY = "person_real_pay";

    public static final String ARREARS_PAY = "arrears_pay";

    public static final String COMPANY_REAL_REFUND = "company_real_refund";

    public static final String PERSON_REAL_REFUND = "person_real_refund";

    public static final String PAY_TIME = "pay_time";

    public static final String IN_APPROVE_ID = "in_approve_id";

    public static final String EMPLOYEE_NUMBER = "employee_number";

    public static final String USE_CAR_CONFIG_ID = "use_car_config_id";

    public static final String IS_INVOICE = "is_invoice";

    public static final String USE_CAR_SRV = "use_car_srv";

    public static final String USER_ID = "user_id";

    public static final String TENANT = "tenant";

    public static final String ORG_PK = "org_pk";

    public static final String DEPARTMENT = "department";

    public static final String DEPT_PK = "dept_pk";

    public static final String IN_CREATE_TIME = "in_create_time";

    public static final String BX_STATE = "bx_state";

    public static final String IS_NOTE = "is_note";

    public static final String CATEGORY = "category";

    public static final String CHANNEL_ID = "channel_id";

    public static final String ARRIVE_CITY = "arrive_city";

    public static final String AIR_PLANE_NO = "air_plane_no";

    public static final String TS = "ts";

    public static final String ASSUME_ORG = "assumeOrg";

    public static final String ASSUME_DEPT = "assumeDept";

    public static final String COST_PROJECT = "costProject";

    public static final String APPLY_USER = "applyUser";

    public static final String COMPANION = "companion";

    public static final String CARORDERS = "carOrders";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriCarOrder{" +
        "id=" + id +
        ", orderNo=" + orderNo +
        ", fromType=" + fromType +
        ", type=" + type +
        ", publicOrPrivate=" + publicOrPrivate +
        ", isDomc=" + isDomc +
        ", orderStatus=" + orderStatus +
        ", vehicleModel=" + vehicleModel +
        ", startName=" + startName +
        ", endName=" + endName +
        ", departureTime=" + departureTime +
        ", arriveTime=" + arriveTime +
        ", callPhone=" + callPhone +
        ", psgName=" + psgName +
        ", psgPhone=" + psgPhone +
        ", linkerName=" + linkerName +
        ", linkerPhone=" + linkerPhone +
        ", driverPhone=" + driverPhone +
        ", vehicleCard=" + vehicleCard +
        ", createBy=" + createBy +
        ", payType=" + payType +
        ", paymentType=" + paymentType +
        ", cityName=" + cityName +
        ", sourceType=" + sourceType +
        ", platCode=" + platCode +
        ", outUserCode=" + outUserCode +
        ", approveStatus=" + approveStatus +
        ", costCenterName=" + costCenterName +
        ", distance=" + distance +
        ", duration=" + duration +
        ", otherInfo=" + otherInfo +
        ", outCompanyId=" + outCompanyId +
        ", outCreateTime=" + outCreateTime +
        ", totalPrice=" + totalPrice +
        ", actualPrice=" + actualPrice +
        ", couponPay=" + couponPay +
        ", companyRealPay=" + companyRealPay +
        ", personRealPay=" + personRealPay +
        ", arrearsPay=" + arrearsPay +
        ", companyRealRefund=" + companyRealRefund +
        ", personRealRefund=" + personRealRefund +
        ", payTime=" + payTime +
        ", inApproveId=" + inApproveId +
        ", employeeNumber=" + employeeNumber +
        ", useCarConfigId=" + useCarConfigId +
        ", isInvoice=" + isInvoice +
        ", useCarSrv=" + useCarSrv +
        ", userId=" + userId +
        ", tenant=" + tenant +
        ", orgPk=" + orgPk +
        ", department=" + department +
        ", deptPk=" + deptPk +
        ", inCreateTime=" + inCreateTime +
        ", bxState=" + bxState +
        ", isNote=" + isNote +
        ", category=" + category +
        ", channelId=" + channelId +
        ", arriveCity=" + arriveCity +
        ", airPlaneNo=" + airPlaneNo +
        ", ts=" + ts +
        ", assumeOrg=" + assumeOrg +
        ", assumeDept=" + assumeDept +
        ", costProject=" + costProject +
        ", applyUser=" + applyUser +
        ", companion=" + companion +
        "}";
    }
}
